//
//  InformationViewController.m
//  DianNaoWang
//
//  Created by dllo on 15/11/3.
//  Copyright © 2015年 蓝鸥科技. All rights reserved.
//

#import "ReplaceSearchBarView.h"

@implementation ReplaceSearchBarView

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        //CGRectMake(20, 30, 275, 25)
        UIImageView *searchImageView = [[UIImageView alloc]initWithFrame:CGRectMake(60, 5, 15, 15)];
        searchImageView.image = [UIImage imageNamed:@"fangdajing@2x"];
        UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(searchImageView.frame.origin.x + searchImageView.frame.size.width + 10, searchImageView.frame.origin.y, 120, searchImageView.frame.size.height)];
        label.backgroundColor = [UIColor whiteColor];
        label.font = [UIFont systemFontOfSize:12];
        label.textColor = [UIColor grayColor];
        label.text = @"请输入产品名称或型号";
        [self addSubview:searchImageView];
        [self addSubview:label];
        
        
    }
    return self;
}








/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
